#ifndef _DOCCONTROL_H
#define _DOCCONTROL_H
#include <QWidget>
//#include <QToolBox>
class QButtonGroup;
//class QWidget;
class QStringList;
class QGridLayout;

class DocControl:public QWidget {
	Q_OBJECT
public:
	DocControl(QWidget* parent=0);

signals:
	void setFilter(int mode);
	void setEmergent(int mode);
	void setIncident(int mode);
	void setFactor(double fac);
	void snapshot();

public slots:
	void selectIncident(int id);
	void selectEmergent(int id);
	void selectZoom(int id);
	void selectFilter(int id);
	void snap(bool checked);

private:
	QButtonGroup *incident,*emergent,*zoom,*filterGroup;
	QGridLayout* addButtonGroup(QButtonGroup* group, int cols, QStringList& sl);
};

#endif